<template>
  <div id="app">
    welcome<br><br>
    <input type="button" value="   增      加   " @click="increment"/><br><br>
    <div>现在数字为：{{count}}</div>

  </div>
</template>

<script>

  import {mapGetters,mapActions} from 'vuex'

  export default {
    computed:mapGetters([
      'count'
    ]),
    methods:mapActions([
      'increment'
    ]),
    name: 'app'
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}


</style>
